﻿using System;

namespace diantou.web.emanagement
{
    /// <summary>
    /// 考试列表
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class problemExamList : adminView<problemExamList>
    {
        /// <summary>
        /// 问题
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.examProblem problem;
        /// <summary>
        /// 考试集合
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.exam[] exams;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="problemId"></param>
        /// <returns></returns>
        private bool loadView(int problemId)
        {
            if ((problem = diantou.examDataAccess.clientCache.ExamProblem[problemId]) != null)
            {
                exams = diantou.examDataAccess.clientCache.Exam.Get(diantou.examDataAccess.tcpCall.examItem.getProblemExamIds(problemId));
                return true;
            }
            AjaxResponse(webConfig.NotFound404);
            return false;
        }
    }
}
